﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="SalesPersons.aspx.cs" Inherits="SalesPersons" Title="Ghasam | Sales Persons" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <div class="title">
            فروشندگان
        </div>
        
        <div>
            <hr />
        </div>
        
        <div>
            <asp:GridView ID="gvSalesPersons" runat="server" AllowPaging="True" PageSize="12" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" >
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="کد" InsertVisible="False" ReadOnly="True"
                        SortExpression="ID" />
                    <asp:BoundField DataField="Title" HeaderText="نام" SortExpression="FirstName" />
                    <asp:BoundField DataField="Phone" HeaderText="تلفن" SortExpression="Phone" />
                    <asp:BoundField DataField="Balance" HeaderText="تراز" SortExpression="Balance" />
                    <asp:TemplateField HeaderText="تاریخ ایجاد">
                        <ItemTemplate>
                            <%# Mani.Common.MyPersianDate.DateTimeToPersian(Eval("CreateDate")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="آخرین تغییر">
                        <ItemTemplate>
                            <%# Mani.Common.MyPersianDate.DateTimeToPersian(Eval("ModifyStamp")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
           <!-- <asp:SqlDataSource ID="sdSalesPersons" runat="server" ConnectionString="<%$ ConnectionStrings:GhasamConnectionString %>"
                SelectCommand="SELECT * FROM [SalesPersons]"></asp:SqlDataSource>-->
        </div>
    </div>
</asp:Content>

